]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme/panel: Slightly increase horizontal padding on activities button
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 4 Aug 2020 09:47:18 +0000 (11:47 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 13 Jan 2021 23:06:48 +0000 (23:06 +0000)
The activities button doesn't have an icon, which makes its horizontal
padding appear a bit smaller than the padding of most other items in the
panel.

We're going to indicate hover and focus of items in the panel using a
pill-shaped background color, which means the padding of those items
will get more visible. So give the activities button a special treatment
and slightly increase its padding to make sure the new indicator will
look good.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

data/theme/gnome-shell-sass/widgets/_panel.scss

index 56c445a74382d6b6580b4bdf4de682f7a5a42ce8..1ee17d36a81e77814c74eaa3b80b26b82c90e16b 100644 (file)
@@ -77,6 +77,10 @@ $panel_height: 1.86em;
       color: lighten($fg_color, 10%);
       &:focus, &:hover, &:active { color: lighten($fg_color, 10%); }
     }
+
+    &#panelActivities {
+      -natural-hpadding: $base_padding * 3;
+    }
   }
 
   .panel-button {